import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'


import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import '../theme/index.css'
import i18n from './lang/lang' //自定义国际化语言包

// 引入通用样式
import '@/assets/style/base.scss'


Vue.use(ElementUI);


import * as api from '@/request/api.js'
Vue.prototype.$api = api
// rem适配导入
import '@/assets/js/flexible.js'

import Router from 'vue-router'

const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}


Vue.config.productionTip = false

new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app')